package codeoffloading;

import utilities.BatteryLevel;

import com.example.maui_android.R;

import fibonacci.FibonacciStub;
import android.app.Activity;
import android.content.Intent;
import android.content.IntentFilter;
import android.os.Bundle;

public class MAUIActivity extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		
		IntentFilter ifilter = new IntentFilter(Intent.ACTION_BATTERY_CHANGED);
		Intent batteryStatus = this.registerReceiver(null, ifilter);
		
		
		BatteryLevel.setBatteryIntent(batteryStatus);
	}
}
